package com.rxh.utils;

/**
 * Created with IntelliJ IDEA.
 * User: 陈俊雄
 * Date: 2018/4/2
 * Time: 17:29
 * Project: Management
 * Package: com.rxh.utils
 */
public class SystemConstant {
    // 秒转毫秒
    public final static long SECOND_TO_MILLISECOND = 1000L;
    // 分钟转毫秒
    public final static long MINUTE_TO_MILLISECOND = 60 * SECOND_TO_MILLISECOND;
    // 小时转毫秒
    public final static long HOUR_TO_MILLISECOND = 60 * MINUTE_TO_MILLISECOND;

    // 内部管理员角色
    public final static String ROLE_INTERNAL_ADMIN = "ROLE_INTERNAL_ADMIN";
    // 内部用户角色
    public final static String ROLE_INTERNAL_USER = "ROLE_INTERNAL_USER";
    // 商户管理员角色
    public final static String ROLE_MERCHANT_ADMIN = "ROLE_MERCHANT_ADMIN";
    // 商户用户角色
    public final static String ROLE_MERCHANT_USER = "ROLE_MERCHANT_USER";
    // 管理员权限ID
    public final static long ROLE_ADMIN_ID = 777L;
    // 启用
    public final static short ENABLE = 1;
    // 禁用
    public final static short DISABLE = 0;
    // 未审核
    public final static short ORDER_CHANGE_STATUS_UNAUDITED = 0;
    // 订单变更成功
    public final static short ORDER_CHANGE_STATUS_SUCCESSFUL = 1;
    // 订单变更失败
    public final static short ORDER_CHANGE_STATUS_FAIL = 2;
    // 订单变更银行处理中
    public final static short ORDER_CHANGE_STATUS_PROCESSING = 3;
    // 已通过
    public final static short PASSED = 1;
    // 未通过
    public final static short DID_NOT_PASS = 2;
    // 正常
    public final static short EXCEPTION_STATUS_NORMAL = 0;
    // 冻结
    public final static short EXCEPTION_STATUS_FREEZE = 1;
    // 退款
    public final static short EXCEPTION_STATUS_REFUND = 2;
    // 拒付
    public final static short EXCEPTION_STATUS_REFUSED = 4;
    // 交易汇率
    public final static short TRANSACTION_RATE = 0;
    // 结算汇率
    public final static short SETTLEMENT_RATE = 1;
    // 划款汇率
    public final static short FUNDING_RATE = 2;
    // 全额退款
    public final static short FULL_REFUND = 2;
    // 部分退款
    public final static short PARTIAL_REFUND = 3;
    // 全额拒付
    public final static short FULL_REFUSED = 4;
    // 部分拒付
    public final static short PARTIAL_REFUSED = 5;
    // 代理拒付
    public final static short PROXY_REFUSED = 6;
    // 银行处理退款中
    public final static short BANK_PROCESSING_REFUND = 7;
    // 人民币
    public final static String CURRENCY_CNY = "CNY";
    // 风控限次
    public final static String RISK_LIMIT = "Limit";
    public final static String RISK_STATUS = "status";
    public final static String LIMIT_TABLE_ORDER = "core_order";
    public final static String LIMIT_TABLE_CARDHOLDER = "core_cardholder";
    public final static String LIMIT_TABLE_RECIPIENTS = "core_order_detail";

    public final static String LIMIT_IP= "sys00000000101000002";
    public final static String LIMIT_CARDNO= "sys00000000101000002";
    public final static String LIMIT_EMAIL = "sys00000000101000003";
    public final static String LIMIT_ADDRESS = "sys00000000101000004";
    public final static String LIMIT_MER_ORDER_ID = "sys00000000101000005";
    public final static String LIMIT_MER_ID = "sys00000000101000006";
    public final static String LIMIT_MER_WEBSET = "sys00000000101000007";
    public final static String LIMIT_PHONE = "sys00000000101000008";

    //风控列表-风控限额
    public final static String RISK_QUOTA = "Quota";
    //风控列表-黑卡管理
    public final static String RISK_DANGER = "Danger";
    //风控拒绝
    public final static String RISK_REFUSE = "Refuse";
    //退款
    public final static String REFUND = "refund";
    //风控拒绝-发卡行拒绝
    public final static String STOP_ISSUER = "sys00000000102000001";
    //风控拒绝-商务卡
    public final static String STOP_BUSINESS = "sys00000000102000002";
    //风控拒绝-国家
    public final static String STOP_COUNTRY = "sys00000000102000003";
    //风控拒绝-IP
    public final static String STOP_IP = "sys00000000180000262";
    //风控拒绝-邮箱
    public final static String STOP_EMAIL = "sys00000000180000263";
    //风控拒绝-卡号
    public final static String STOP_CARDID = "sys00000000180000264";
    //存在状态 -启用
    public final static short STATUS_ENABLE = 0;
    /**
     * 限定笔
     */
    public final static int LIMIT_EVERY = 0;
    /**
     * 限定日
     */
    public final static int LIMIT_DAY = 1;

    /**
     * 限定月
     */
    public final static int LIMIT_MONTH = 2;

    /**
     * 限定年
     */
    public final static int LIMIT_YEAR = 3;

    // 限定VISA额度
    public final static int LIMIT_VISA = 4;

    // 限定MASTER额度
    public final static int LIMIT_MASTER = 5;
    /**
     * 风控引用类型
     */
    public final static String[] REF_TYPE = {"通用", "收单机构", "商户", "域名"};
    /**
     * 风控引用类型-收单机构
     */
    public final static int REF_TYPE_ACQUIRER = 1;
    /**
     * 收单机构类型-转发类型
     */
    public static final int ACQUIRER_TYPE_FORWRD = 3;
    /**
     * 收单机构类型-直连银行
     */
    public static final int ACQUIRER_TYPE_DIRECT = 1;
    public final static String RISK_STOPS = "stop";
    public final static String RISK_COUNTRY = "Country";
    public final static String RISK_ISSUER = "issuer";
    public final static String RISK_EXTRISK = "extrisk";
    public final static String RISK_CREDIT = "Credit";
    public final static String EXCEPTION_STATUS = "ExceptionStatus";
    public final static String AUDITED_STATUS = "AuditedStatus";
    //信用卡卡种 -威士卡
    public final static String CREDIT_VISA = "Visa";
    //信用卡卡种 -万事达卡
    public final static String CREDIT_MASTER = "Master";
    //信用卡卡种 -吉士美卡
    public final static String CREDIT_JCB = "JCB";
    //信用卡卡种 -运通卡
    public final static String CREDIT_AE = "AE";
    // 支付方式
    public final static String PAY_MODE = "PayMode";
    // 支付页面
    public final static String PAY_PAGE = "PayPage";
    // 信用卡
    public final static String CREDIT = "Credit";
    // 借记卡支付
    public final static String DEBIT = "Debit";
    // Yandex.Money
    public final static String YANDEX = "Yandex";
    // Qiwi
    public final static String QIWI = "Qiwi";
    // 汇款支付
    public final static String REMITTANCE = "Remittance";
    // 银行状态
    public final static String BANK_STATUS = "BankStatus";
    // 快递状态
    public final static String SHIP_STATUS = "ShipStatus";
    // 已发货
    public final static short SHIP_STATUS_SHIPPED = 1;
    // 订单变更状态：未通过
    public final static short REFUND_STATUS_DID_NOT_PASS = 2;
    // 订单变更状态：银行处理中
    public final static short REFUND_STATUS_BANK_PROCESSING = 3;
    // 退款处理中
    public final static short EXCEPTION_STATUS_REFUND_PROCESSING = 7;
    // 清算状态
    public final static String FINANCE_STATUS = "FinanceStatus";
    // 洲
    public final static String CONTINENT = "Continent";
    // 币种
    public final static String CURRENCY = "Currency";
    // 语言
    public final static String LANG = "Lang";
    // 国家
    public final static String COUNTRY = "Country";
    // 快捷测试
    public final static String QUICK_TEST = "QuickTest";
    // 机构类型
    public final static String ACQUIRER_TYPE = "AcquirerType";
    // 通道交易币种类型
    public final static String CURRENCY_TYPE = "CurrencyType";
    // 风控
    public final static String RISK = "Risk";
    // 存在状态
    public final static String STATUS = "Status";
    // 商户状态
    public final static String MERCHANT_STATUS = "MerchantStatus";
    // 行业类型
    public final static String INDUSTRY_TYPE = "IndustryType";
    // 银行状态：成功
    public final static short BANK_STATUS_SUCCESS = 0;
    // 银行状态：失败
    public final static short BANK_STATUS_FAIL = 1;
    // 银行状态：未支付
    public final static short BANK_STATUS_UNPAID = 2;
    // 银行状态：支付中
    public final static short BANK_STATUS_PENDING_PAYMENT = 3;
    // 银行状态：超时
    public final static short BANK_STATUS_TIME_OUT = 98;
    // 银行状态：重发
    public final static short BANK_STATUS_RESEND = 4;
    // 系统日志类型：
    public final static short LOG_LOGIN = 0;
    // 系统日志类型：
    public final static short LOG_ADD = 1;
    // 系统日志类型：
    public final static short LOG_DELETE = 2;
    // 系统日志类型：
    public final static short LOG_UPDATE = 3;
    // 系统日志类型：
    public final static short LOG_READ = 4;
    // 系统日志类型：未知方法
    public final static short LOG_UNKNOWN_METHOD = 8;
    // 系统日志类型：未知方法
    public final static short LOG_ERROR = 9;
    // 商户：业务类型
    public final static String BUSINESS_TYPE = "BusinessType";
    // 商户：商户类型
    public final static String MERCHANT_CATEGORY = "MerchantCategory";
    // 保证金释放状态
    public final static String BOND_STATUS = "bondStatus";
    // 加密算法
    public final static String ENCRYPT = "Encrypt";
    // 接口类型
    public final static String INTERFACE_TYPE = "InterfaceType";
    // 商户扣率
    public final static short REF_TYPE_MERCHANT = 1;
    // 域名扣率
    public final static short REF_TYPE_WEB = 2;
    // 跟踪设置
    public final static String TRACK_SETTING = "TrackSetting";
    // 跟踪审核
    public final static String TRACK_AUDIT = "TrackAudit";
    // 是否妥投
    public final static String CORRECT_DISTRIBUTE = "CorrectDistribute";
    // 等级
    public final static String LEVEL = "Level";
    // 自动续费
    public final static String AUTOMATIC_RENEWAL = "AutomaticRenewal";
    // 提现状态
    public final static String FINANCE_DRAWING_STATUS = "FinanceDrawingStatus";
    // 0:无效 1:待审核 2:待划款 3:已划款 4:自动扣款 5:待复核
    public final static short FINANCE_DRAWING_STATUS_INVALID = 0;
    public final static short FINANCE_DRAWING_STATUS_UNAUDITED = 1;
    public final static short FINANCE_DRAWING_STATUS_PENDING_PAYMENT = 2;
    public final static short FINANCE_DRAWING_STATUS_TRANSFERRED = 3;
    public final static short FINANCE_DRAWING_STATUS_AUTOMATIC_DEDUCTION = 4;
    public final static short FINANCE_DRAWING_STATUS_PENDING_REVIEW = 5;
    // 0:未勾兑 1:已勾兑 2:已发货 3:已结算 4:已划款 5:需补划 6:已完成
    public final static short FINANCE_STATUS_LIQUIDATION = 0;
    public final static short FINANCE_STATUS_UNLIQUIDATION = 1;

    // 申请类型:商户 2:内部人员
    public final static short FINANCE_DRAWING_TYPE_MERCHANT = 1;
    public final static short FINANCE_DRAWING_TYPE_INTERNAL = 2;
    public final static String COUNRTY_CODE_CHN = "CHN";
    public final static String QUESTION_TYPE = "QuestionType";
    public final static String QUESTION_STATUS = "QuestionStatus";
    //域名状态 0:禁用 1:启用 2:未审核 3:删除
    public final static short WEB_SITE_STATUS_UNAUDITED = 2;
    public final static short WEB_SITE_STATUS_DELETE = 3;
    //快递公司名称
    public final static String EXPRESS = "Express";
    //发货状态 0:未发货 1:已发货
    public final static short NOT_SHIPPED = 0;
    public final static short SHIPPED = 1;
    public final static short MERCHANT_QUESTION_STATUS_PENDING = 1;
    public final static short MERCHANT_QUESTION_STATUS_PROCESSED = 2;

    // 交易状态-支付网关
    public final static short PAY_STATUS_GATEWAY = 0;

    // 交易状态-支付页面
    public final static short PAY_STATUS_PAGE = 1;

    // 交易状态-平台风控
    public final static short PAY_STATUS_RISK = 2;

    // 交易状态-外置风控
    public final static short PAY_STATUS_OUTLAY = 3;

    // 交易状态-发送银行
    public final static short PAY_STATUS_SEND = 4;

    // 交易状态-结果处理
    public final static short PAY_STATUS_RESPONSE = 5;

    // 交易状态-返回商户
    public final static short PAY_STATUS_RETURN = 6;

    // 跳转接口
    public final static short INTERFACE_REDIRECT = 0;

    // 内嵌接口
    public final static short INTERFACE_INNER = 1;

    // 商户上抛点数对象类型：通用
    public final static short MERCHANT_RATE_PERCENT_TYPE_COMMON = 0;

    // 商户上抛点数对象类型：原始币种
    public final static short MERCHANT_RATE_PERCENT_TYPE_CURRENCY = 1;

    // 商户上抛点数对象类型：商户网址
    public final static short MERCHANT_RATE_PERCENT_TYPE_SITE = 2;
    // CardHolder对象payFlag支付标识：最后
    public final static short PAY_FLAG_LAST = 0;
    // CardHolder对象payFlag支付标识：历史
    public final static short PAY_FLAG_HISTORY = 1;

    // 退款成功
    public final static short CHANGE_BANK_STATUS_SUCCESS = 1;
    // 退款失败
    public final static short CHANGE_BANK_STATUS_FAIL = 2;
    // 退款超时
    public final static short CHANGE_BANK_STATUS_TIME_OUT = 3;
    // 退款申请成功
    public final static short CHANGE_BANK_STATUS_APPLICATION_SUCCESS = 4;
    // 退款申请失败
    public final static short CHANGE_BANK_STATUS_APPLICATION_ERROR = 5;
    //拒付成功
    public final static short RUFUSE_BANK_STATUS_SUCCESS = 6;
    //拒付失败
    public final static short RUFUSE_BANK_STATUS_ERROR = 7;
    // 更新成功
    public final static short UPDATE_SUCCESS = 1;
    // 更新失败
    public final static short UPDATE_FAIL = 0;
}
